namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("PromotionFormula")]
    public class PromotionFormula : ObjectRow {
        
        public PromotionFormula() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public PromotionFormula(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PromotionFormula(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public int ID {
            get {
                return (System.Int32)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        [Field("CODE")]
        public string CODE
        {
            get
            {
                return (System.String)GetValue("CODE");
            }
            set
            {
                SetValue("CODE", value);
            }
        }

        [Field("NAME")]
        public string NAME {
            get {
                return (System.String)GetValue("NAME");
            }
            set {
                SetValue("NAME", value);
            }
        }
        
        [Field("SATISFYVALUE")]
        public int SATISFYVALUE {
            get {
                return (System.Int32)GetValue("SATISFYVALUE");
            }
            set {
                SetValue("SATISFYVALUE", value);
            }
        }
        
       
        [Field("PRESENTVALUE")]
        public int PRESENTVALUE {
            get {
                return (System.Int32)GetValue("PRESENTVALUE");
            }
            set {
                SetValue("PRESENTVALUE", value);
            }
        }
        
        [Field("STARTTIME")]
        public decimal STARTTIME {
            get {
                return (System.Decimal)GetValue("STARTTIME");
            }
            set {
                SetValue("STARTTIME", value);
            }
        }
        
        [Field("ENDTIME")]
        public decimal ENDTIME {
            get {
                return (System.Decimal)GetValue("ENDTIME");
            }
            set {
                SetValue("ENDTIME", value);
            }
        }
        
        [Field("ACTIVE")]
        public bool ACTIVE {
            get {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set {
                SetValue("ACTIVE", value);
            }
        }
        
        [Field("DOMAIN_ID")]
        public decimal DOMAINID {
            get {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set {
                SetValue("DOMAINID", value);
            }
        }
        
        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set {
                SetValue("LAST_UPDATER", value);
            }
        }
        
        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME {
            get {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATETIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATETIME");
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("DESCRIPTION")]
        public string DESCRIPTION
        {
            get
            {
                return (System.String)GetValue("DESCRIPTION");
            }
            set
            {
                SetValue("DESCRIPTION", value);
            }
        }

        [Field("REMARK")]
        public string REMARK
        {
            get
            {
                return (System.String)GetValue("REMARK");
            }
            set
            {
                SetValue("REMARK", value);
            }
        }
    }
}
